package com.example.generator.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.generator.domain.Order;
import com.example.generator.mapper.OrderMapper;
import com.example.generator.service.OrderService;
import com.example.vo.SalesmanOrderSumVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Order)表服务实现类
 *
 * @author makejava
 * @since 2024-10-17 19:49:15
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order>
        implements OrderService {
    @Resource
    private OrderMapper orderMapper;


    public List<SalesmanOrderSumVo> sumOrderByDate(String startDate, String endDate){
        return orderMapper.sumOrderByDate(startDate,endDate);
    }

}
